package com.xmall.controller.wx;

import com.xmall.bean.bo.FeedbackBO;
import com.xmall.bean.vo.BaseRespVo;
import com.xmall.service.FeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author Connor
 * @ClassName: FeedbackController
 * @PackageName: com.xmall.controller.wx
 * @date 2020/12/08
 * @Version 1.0
 */
@RestController
@RequestMapping("wx/feedback")
public class FeedbackController {

    @Autowired
    FeedbackService feedbackService;

    @PostMapping("submit")
    public BaseRespVo submitFeedback(@RequestBody FeedbackBO feedbackBO) {
        feedbackService.insertFeedback(feedbackBO);
        return BaseRespVo.ok();
    }
}
